package com.farm.decorator;

import com.farm.equipment.Equipment;
import com.farm.equipment.EquipmentState;

public abstract class EquipmentDecorator extends Equipment {
    protected Equipment equipment;

    protected EquipmentDecorator(Equipment equipment) {
        super(equipment.getId(),equipment.getName());
        this.equipment = equipment;
    }

    @Override
    public void work() {
        equipment.work();
    }

    @Override
    public void stop() {
        equipment.stop();
    }

    @Override
    public void setState(EquipmentState state) {
        equipment.setState(state);
    }

    @Override
    public void setFuelLevel(double fuelLevel) {
        equipment.setFuelLevel(fuelLevel);
    }

    @Override
    public void setLocation(String location) {
        equipment.setLocation(location);
    }
} 